const express = require("express");
const router = express.Router();
const index = require("../controller/index.controller");

console.log(index, "index:funtion:");

/* GET home page. */
router.get("/", function (req, res, next) {
  index.getIndexData().then((ress) => {
    res.send(ress);
  });
});

// async function getIndexData() {
//   let res = await index.getIndexData();
//   console.log(index.getIndexData, "getIndexData");
//   return res;
// }

module.exports = router;
